package common.commands;

import ui.WindowManager;


public class CommandExit implements ICommand {

	@Override
	public String getName() {
		
		return "exit";
	}

	@Override
	public String getSynopsis() {
		
		return "exit";
	}

	@Override
	public CommandValue run(String arg) {	
		WindowManager.getInstance().exit();
		Runtime.getRuntime().halt(0);
		return CommandValue.OK;
	}

	@Override
	public String help() {
		
		return "This command exits CLAC workbench";
	}

}
